<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.ArrayList"  %>
<%@ page import="net.jeanhwea.gold.bean.Item"  %>
<jsp:useBean id="dataManager" scope="application"
  class="net.jeanhwea.gold.model.DataManager"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ShowResult</title>
</head>
<body>
<% 
  ArrayList <Item> result = null;
  Item it = null;
  String id = request.getParameter("keyword"); 
  result = dataManager.getResultByID( Integer.parseInt(id) );
  int index = 0;
  while(index < result.size()){
    it = result.get(index);
    index++;
    out.print("<p>" + it.toString() + "</p>");
  }
%>
</body>
</html>